
import { _axios, config } from '../plugins/axios.js'
import axios, {AxiosPromise, AxiosResponse} from "axios"
import Msg from "@/interface/Msg";

/**
 * 获取二维码信息
 */
export function auth1() {
    return _axios.get('auth/qq/get')
}

/**
 * 验证二维码
 * @param params 验证签名参数
 */
export function auth2(params: Record<string, unknown>):AxiosPromise<Msg> | Msg {
    return axios.get(config.baseURL + '/auth/qq/check', { params })
}


